<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script type="text/javascript" src="../js/vue.js"></script>
    <style>
        *{
            margin-top: 20px;
        }
        .demo1{
            height: 50px;
            background-color: bisque;
        }
    </style>
</head>
<body>
    <div id="root">
        <h2>hhh{{name}}</h2>
        <button @click="showInfo">hhhhhhhhhhh</button>
        <a href="https://cn.vuejs.org/v2/api/" @click.prevent=" showInfo"></a>
    </div>
    <div class="demo1" @click=" showInfo">
        <button @click.stop="showInfo">hhhhaaaa</button>
    </div>
</body>
<script type="text/javascript">
    Vue.config.productionTip=false
   const vm= new Vue({
       el:'#root',
       data:{
           name:'ssss'
       },
       methods:{
           showInfo(event){
              console.log(this===vm) 
        }
       }
   })
</script>
</html>